<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Repositories\Eloquent\StyleService;

class StyleServiceProvider extends ServiceProvider {
    public function boot () {
    }

    public function register () {
        //单列绑定
        $this->app->singleton('style', function () {
            return new StyleService();
        });
        //绑定接口
        /*$this->app->bind('App\Repositories\Contracts\StyleContract',function(){
            return new StyleService();
        });*/
    }
}
